﻿using LibraryManagemtn.UI.Windows;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Controls;

namespace LibraryManagemtn.UI
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : DevExpress.Xpf.Ribbon.DXRibbonWindow
    {
        private List<string> autoComplete;
        public MainWindow()
        {
            InitializeComponent();
        }

        private void MainWindow_MainRibbon_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

        

        private void MainWindow_ReserveBook_ClickHandler(object sender, RoutedEventArgs e)
        {
            new ReserveBookDialog().Show();    
        }

        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            //var loginForm = new Login()
            //{
            //    Owner = this,
            //    WindowStartupLocation = WindowStartupLocation.CenterOwner
            //};

            //this.Opacity = 0.3;

            //loginForm.Closed += (s, ea) => { this.Opacity = 1; };
            
            //loginForm.ShowDialog();
        }

    }
}
